/*
 * XML Type:  XActionViewConfig
 * Namespace: http://www.seedwill.com/xul/core
 * Java type: com.seedwill.xul.core.XActionViewConfig
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.core.impl;
/**
 * An XML XActionViewConfig(@http://www.seedwill.com/xul/core).
 *
 * This is a complex type.
 */
public class XActionViewConfigImpl extends com.seedwill.xul.core.impl.XActionConfigImpl implements com.seedwill.xul.core.XActionViewConfig
{
    private static final long serialVersionUID = 1L;
    
    public XActionViewConfigImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName XULID$0 = 
        new javax.xml.namespace.QName("", "xulId");
    private static final javax.xml.namespace.QName MAINVIEWID$2 = 
        new javax.xml.namespace.QName("", "mainViewId");
    private static final javax.xml.namespace.QName SECONDARYVIEWID$4 = 
        new javax.xml.namespace.QName("", "secondaryViewId");
    
    
    /**
     * Gets the "xulId" element
     */
    public java.lang.String getXulId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XULID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "xulId" element
     */
    public org.apache.xmlbeans.XmlString xgetXulId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(XULID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "xulId" element
     */
    public void setXulId(java.lang.String xulId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XULID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(XULID$0);
            }
            target.setStringValue(xulId);
        }
    }
    
    /**
     * Sets (as xml) the "xulId" element
     */
    public void xsetXulId(org.apache.xmlbeans.XmlString xulId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(XULID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(XULID$0);
            }
            target.set(xulId);
        }
    }
    
    /**
     * Gets the "mainViewId" element
     */
    public java.lang.String getMainViewId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAINVIEWID$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "mainViewId" element
     */
    public org.apache.xmlbeans.XmlString xgetMainViewId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MAINVIEWID$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "mainViewId" element
     */
    public void setMainViewId(java.lang.String mainViewId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAINVIEWID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAINVIEWID$2);
            }
            target.setStringValue(mainViewId);
        }
    }
    
    /**
     * Sets (as xml) the "mainViewId" element
     */
    public void xsetMainViewId(org.apache.xmlbeans.XmlString mainViewId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MAINVIEWID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(MAINVIEWID$2);
            }
            target.set(mainViewId);
        }
    }
    
    /**
     * Gets the "secondaryViewId" element
     */
    public java.lang.String getSecondaryViewId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SECONDARYVIEWID$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "secondaryViewId" element
     */
    public org.apache.xmlbeans.XmlString xgetSecondaryViewId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SECONDARYVIEWID$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "secondaryViewId" element
     */
    public boolean isSetSecondaryViewId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SECONDARYVIEWID$4) != 0;
        }
    }
    
    /**
     * Sets the "secondaryViewId" element
     */
    public void setSecondaryViewId(java.lang.String secondaryViewId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SECONDARYVIEWID$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SECONDARYVIEWID$4);
            }
            target.setStringValue(secondaryViewId);
        }
    }
    
    /**
     * Sets (as xml) the "secondaryViewId" element
     */
    public void xsetSecondaryViewId(org.apache.xmlbeans.XmlString secondaryViewId)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SECONDARYVIEWID$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SECONDARYVIEWID$4);
            }
            target.set(secondaryViewId);
        }
    }
    
    /**
     * Unsets the "secondaryViewId" element
     */
    public void unsetSecondaryViewId()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SECONDARYVIEWID$4, 0);
        }
    }
}
